package com.bandit.service.impl;

import com.bandit.dao.BlogTypeDao;
import com.bandit.pojo.BlogType;
import com.bandit.service.BlogTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogTypeServiceImpl implements BlogTypeService {

    @Autowired
    BlogTypeDao blogTypeDao;

    @Override
    public String getTypeNameById(int id) {
        return blogTypeDao.getTypeNameById(id);
    }

    @Override
    public BlogType getBlogTypeById(int id) {
        return blogTypeDao.getBlogTypeById(id);
    }

    @Override
    public List<BlogType> getTypeList() {
        return blogTypeDao.getTypeList();
    }

    @Override
    public int selectCount() {
        return blogTypeDao.selectCount();
    }

    @Override
    public void updateBlogType(BlogType blogType) {
        blogTypeDao.updateBlogType(blogType);
    }

    @Override
    public void insertBlogType(BlogType blogType) {
        blogTypeDao.insertBlogType(blogType);
    }
}
